<?php 

//CLASSE PARA TROCAR URL

   class TrocarUrl{

      private $includeUrl;

      public function __construct($url){

         if(!empty($url) && file_exists("views/".$url.".php")){
			
			
            $this->includeUrl = require_once("views/".$url.".php");
         }else{
			
			$this->includeUrl = require_once("views/buscarFuncionario.php");
			
			//echo '<div id="bem-vindo">
			//<img src="" alt="Bem Vindo">
			//</div>';
		 }

         return $this->includeUrl;
      }
   }
?>